package org.stream.answerduel.vo.Message;

import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * 功能描述：
 *
 * @Auther: 苏建誉
 * @Date: 2019/7/13 22:12
 */
@Data
public class QuitRoomMessage extends Message{
    private String userId;

    public QuitRoomMessage(){
        super(Type.QuitRoom);
    }
    public QuitRoomMessage(Long userId){
        super(Type.QuitRoom);
        this.userId=userId.toString();
    }
    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}
